package com.foxnicweb.app.constants.enums.patent;

import com.github.foxnic.api.constant.CodeTextEnum;
import com.github.foxnic.commons.reflect.EnumUtil;
import org.github.foxnic.web.constants.enums.bpm.ApprovalCatalog;

/**
 * 这里与红坚果保持一致
 * */
public enum PatentSubType implements CodeTextEnum {


	invent("1","发明专利"),
	utility("2","实用新型"),
	appearance("3","外观设计");

	private String code;
	private String text;
	private PatentSubType(String code,String text)  {
		this.code=code;
		this.text=text;
	}

	public String code() {
		return this.code;
	}

	public String text() {
		return text;
	}

	public static ApprovalCatalog parseByCode(String code) {
		return (ApprovalCatalog) EnumUtil.parseByCode(ApprovalCatalog.values(),code);
	}

}
